import http from "@/utils/request";
// 获取请假列表
export const getLeaveList = (data) => {
    return http.get("/rsgl/leave/list", data);
};
// 获取请假详情
export const getLeaveById = (data) => {
    return http.get(`/rsgl/leave/get/${data}`);
};
// 新增请假
export const addLeave = (data) => {
    return http.post("/rsgl/leave/add", data);
};
// 修改请假
export const updateLeave = (data) => {
    return http.put("/rsgl/leave/update", data);
};
// 删除请假
export const deleteLeaveById = (data) => {
    return http.delete(`/rsgl/leave/delete/${data}`);
};